import React from 'react';
import ReactDOM from 'react-dom';
import {
    BrowserRouter as Router,
    Route,
    Switch
} from 'react-router-dom'
import { Provider } from 'react-redux'
import App from './App'
import Register from './pages/Register'
import Login from './pages/Login'
import './index.less'
import * as serverceWorker from './serviceWorker'
import  store from './store/store'

ReactDOM.render(
    <Provider store={store}>
        <Router>
            <Switch>
                <Route path='/login' component={Login} />
                <Route path='/register' component={Register} />
                <Route path='/' component={App} />
            </Switch>
        </Router>
    </Provider>
   ,
    document.getElementById('root')
);

serverceWorker.unregister();

